<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div style="width: 20%;background-color: red;float: left">1</div>
    <div style="width: 20%;background-color: black;float: left">2</div>
</body>
</html>